package com.xiangge.homework;

import com.xiangge.domain.Rectangle;

public class Test07 {
    public static void main(String[] args) {
        Rectangle rectangle = new Rectangle();
        rectangle.setChang(10);
        rectangle.setKuan(5.5);


        // 调用方法打印结果
        System.out.println("长：" + rectangle.getChang());
        System.out.println("宽：" + rectangle.getKuan());
        System.out.println("周长：" + rectangle.getPerimeter());
        System.out.println("面积：" + rectangle.getArea());
        rectangle.getInfo();

        System.out.println("-----------------------------------");
        rectangle.setChang(10<<1);
        rectangle.setKuan(5.5*2);
        rectangle.getInfo();

    }
}
